<?php
header('Content-type:image/png');
#读取图片
$handle = fopen('timg.jpg','r');
//echo fread($handle,99999);
$png = fopen('a.png','w+');
fwrite($png,fread($handle,99999));
fclose($png);
$png_show = fopen('a.png','r');
echo fread($png_show,filesize('a.png'));